package xuan.mall.system.infrastructure.persistence.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;
import xuan.mall.system.domain.entity.Role;
import xuan.mall.system.domain.repository.RoleRepository;
import xuan.mall.system.infrastructure.persistence.mapper.RoleMapper;

import java.util.List;

/**
 * @author: rongxuanzhou
 * @create: 2025/6/2
 * @Description: 角色业务类
 */
@Repository
public class RoleRepositoryImpl extends ServiceImpl<RoleMapper, Role> implements RoleRepository {


    @Override
    public List<Role> findRolesByUserId(Long userid) {
        return this.baseMapper.findRolesByUserId(userid);
    }
}
